import request from '@/utils/request'

/**
 * 登录
 * @param {*} data
 * @returns
 */
export function user_login(mobile: string, code: string) {
  const data = {
    mobile,
    code
  }
  return request({
    url: '/user/center/login/mobile',
    method: 'post',
    data
  })
}
// 获取验证码
export function GetQaCreateCode(data: any) {
  return request({
    url: '/uic/mobile/requestCode',
    method: 'post',
    data
  })
}

// 我的店铺列表
export function merchant_shopList() {
  return request({
    url: '/shop/shopApp/merchant/settle/user/merchant/v2/shopList',
    method: 'get'
    // params: query
  })
}

/**
 * 获取用户信息
 * @param {*} id
 * @returns
 */
export function get_user_info(id: string | undefined) {
  return request({
    url: `/api/user/${id}`,
    method: 'get'
  })
}
